package com.foo.demo.consumer;

import com.foo.demo.api.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Zetas on 2016/11/30.
 */
@Service
public class ProviderRef {

    private static final Logger logger = LoggerFactory.getLogger(ProviderRef.class);

    @Autowired
    private HelloService helloService;

    public void hello() {
        String msg = "consumer";
        String response = helloService.hello(msg);

        logger.info(response);
    }

}
